package com.helloworld.mapper;

import com.helloworld.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserMapper {
    List<User> queryUserList(String nameLike);

    User queryUserById(Integer id);

    int addUser(@Param("t") User user);

    int updateUser(User user);

    int deleteUser(Integer id);
}
